package me.predatorray.xcollection;

public final class Check {

    private Check() {}

    public static void isNotNull(Object obj) throws IllegalArgumentException {
        if (obj == null) {
            throw new IllegalArgumentException();
        }
    }

    public static void isNotNull(Object obj, String msg)
            throws IllegalArgumentException {
        if (obj == null) {
            throw new IllegalArgumentException(msg);
        }
    }
}
